/*
 *  startgame_window.h
 */

#ifndef START_GAME_WINDOW_H
#define START_GAME_WINDOW_H

#include <gtkmm.h>
#include <gtkmm/window.h>
#include <string>
#include "client_app.h"
#include "client_window.h"
#include "../../common/src/message.h"

class StartGameWindow: public ClientWindow {
public:
    StartGameWindow(BaseObjectType* object,
		            const Glib::RefPtr<Gtk::Builder>& builder);
	virtual ~StartGameWindow();
    void onStartGame();
    void onCancelGame();
    virtual void notifyGameAbortOk(ClientApp* app);
    virtual void notifyGameStartOk(ClientApp* app);
    virtual void notifyPlayerJoined(ClientApp* app);
    virtual void notifyPlayerDissevered(ClientApp* app);
    void setGameMinPlayers(std::string min_players);
    void setGameJoinedPlayers(std::string joined_players);
    void setLobbyWindow(Gtk::Window* window);
protected:
    Gtk::Label* lbMinPlayers;
    Gtk::Label* lbJoinedPlayers;
	Gtk::Button* btnStartGame;
  	Gtk::Button* btnCancelGame;
private:
    Gtk::Window* winLobby;
    int players_ready;
};

#endif  //START_GAME_WINDOW_H

//{+}

